package com.wolf.gulimall.product.feign;


import com.wolf.common.to.es.SkuEsModel;
import com.wolf.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 检索服务远程调用
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    /**
     * 上架商品
     *
     * @param skuEsModels 商品信息集合
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);

}
